package com.ruoyi.healthCard.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.healthCard.mapper.TBizPackagePhysicalItemMapper;
import com.ruoyi.healthCard.domain.TBizPackagePhysicalItem;
import com.ruoyi.healthCard.service.ITBizPackagePhysicalItemService;

/**
 * 套餐项目关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-20
 */
@Service
public class TBizPackagePhysicalItemServiceImpl implements ITBizPackagePhysicalItemService 
{
    @Autowired
    private TBizPackagePhysicalItemMapper tBizPackagePhysicalItemMapper;

    /**
     * 查询套餐项目关联
     * 
     * @param bizpackagePhysicalItemId 套餐项目关联主键
     * @return 套餐项目关联
     */
    @Override
    public TBizPackagePhysicalItem selectTBizPackagePhysicalItemByBizpackagePhysicalItemId(Long bizpackagePhysicalItemId)
    {
        return tBizPackagePhysicalItemMapper.selectTBizPackagePhysicalItemByBizpackagePhysicalItemId(bizpackagePhysicalItemId);
    }

    /**
     * 查询套餐项目关联列表
     * 
     * @param tBizPackagePhysicalItem 套餐项目关联
     * @return 套餐项目关联
     */
    @Override
    public List<TBizPackagePhysicalItem> selectTBizPackagePhysicalItemList(TBizPackagePhysicalItem tBizPackagePhysicalItem)
    {
        return tBizPackagePhysicalItemMapper.selectTBizPackagePhysicalItemList(tBizPackagePhysicalItem);
    }

    /**
     * 新增套餐项目关联
     * 
     * @param tBizPackagePhysicalItem 套餐项目关联
     * @return 结果
     */
    @Override
    public int insertTBizPackagePhysicalItem(TBizPackagePhysicalItem tBizPackagePhysicalItem)
    {
        return tBizPackagePhysicalItemMapper.insertTBizPackagePhysicalItem(tBizPackagePhysicalItem);
    }

    /**
     * 修改套餐项目关联
     * 
     * @param tBizPackagePhysicalItem 套餐项目关联
     * @return 结果
     */
    @Override
    public int updateTBizPackagePhysicalItem(TBizPackagePhysicalItem tBizPackagePhysicalItem)
    {
        return tBizPackagePhysicalItemMapper.updateTBizPackagePhysicalItem(tBizPackagePhysicalItem);
    }

    /**
     * 批量删除套餐项目关联
     * 
     * @param bizpackagePhysicalItemIds 需要删除的套餐项目关联主键
     * @return 结果
     */
    @Override
    public int deleteTBizPackagePhysicalItemByBizpackagePhysicalItemIds(Long[] bizpackagePhysicalItemIds)
    {
        return tBizPackagePhysicalItemMapper.deleteTBizPackagePhysicalItemByBizpackagePhysicalItemIds(bizpackagePhysicalItemIds);
    }

    /**
     * 删除套餐项目关联信息
     * 
     * @param bizpackagePhysicalItemId 套餐项目关联主键
     * @return 结果
     */
    @Override
    public int deleteTBizPackagePhysicalItemByBizpackagePhysicalItemId(Long bizpackagePhysicalItemId)
    {
        return tBizPackagePhysicalItemMapper.deleteTBizPackagePhysicalItemByBizpackagePhysicalItemId(bizpackagePhysicalItemId);
    }
}
